package com.gxt.basic.mapper;

import com.gxt.basic.query.BaseQuery;
import com.gxt.org.domain.Department;
import com.gxt.org.query.DepartmentQuery;

import java.io.Serializable;
import java.util.List;

public interface BaseMapper<T> {
    void insert(T t);
    void deleteById(Serializable id);
    void update(T t);
    T loadById(Serializable id);
    List<T> loadAll();
    //下面两个方法是高级查询
    long queryTotal(BaseQuery query);
    List<T> queryDatas(BaseQuery query);
    void batchDelete(List<Long> ids);
}
